import React, { useState } from 'react'
import "./index.css"

export default function Gege({ car, setCar }) {
  return (
    <div className='gege'>
      <h1>我是哥哥</h1>
      <p>我经过我努力 买了{car}</p>
      <button onClick={() => { setCar("二手奥迪") }}>我换车了</button>
    </div>
  )
}
